<template>
  <div class="demo-title">input/demo1</div>
  <div class="demo">
    <div class="demo-item">
      <Icon name="my2" />
      <label class="label">Username</label>
      <Input class="input" v-model="val" placeholder="Please enter Username" />
    </div>
  </div>
</template>

<script lang="ts" setup>
  import { ref } from 'vue'
  import Input from '@sscd-mobile/input'
  import Icon from '@sscd-mobile/icon'
  const val = ref('')
</script>

<style lang="less" scoped>
  .demo {
    padding: 8px 0;
    background: #fff;
    .demo-item {
      display: flex;
      align-items: center;
      padding-left: 12px;
      .label {
        margin-left: 8px;
      }
      .input {
        flex: 1;
      }
    }
  }
</style>
